home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7641 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  900 b 

  1. Path: phoenix.owl.de!not-for-mail
  2. Newsgroups: comp.sys.amiga.programmer
  3. References: <571.6679T1361T1440@login.eunet.no>
  4. From: "Frank Wille" <frank@phoenix.owl.de>
  5. Date: Fri, 19 Apr 1996 19:13:25 +0200
  6. X-NewsReader: IntuiNews 1.3b Beta 3 (5.11.95)
  7. Subject: Re: MemList
  8. Message-ID: <42116803@phoenix.owl.de>
  9. Organization: Phantasm
  10.  
  11. Patrick Hanevold wrote on 15 Apr 1996 21:43:30 GMT
  12. about "MemList" :
  13.  
  14.  
  15. PH> Can anyone tell me whats wrong with this line?
  16. PH>
  17. PH> printf("$%x\n",((structMemList*)&SysBase->MemList)->ml_ME[0].me_Addr);
  18. PH> 
  19. PH> Its supose to print out the start of the first memory hunk.
  20.  
  21. 1. SysBase->MemList is a List structure, not MemList.
  22. 2. The nodes of MemList are MemHeader structures, not MemList.
  23.  
  24. Try this:
  25.  
  26. printf("$%08lx\n",((struct MemHeader *)SysBase->MemList.lh_Head)->mh_Lower);
  27.  
  28.  
  29. -- _
  30. _ // Frank      EMail: frank@phoenix.owl.de
  31. \X/             IRC:   Phx @ #amiga(ger)
  32.  
  33.